package com.java.test.socket;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
    private ServerSocket ss;
    private Socket socket;
    private BufferedReader in;
    private PrintWriter out;
    public Server() throws IOException {
        ss=new ServerSocket(10000);
        while(true) {
            socket = ss.accept();
            String RemoteIP = socket.getInetAddress().getHostAddress();
            String RemotePort = ":"+socket.getLocalPort();
            System.out.println("A client come in!IP:"+RemoteIP+RemotePort);
        }
    }

    public static void main(String[] args) {
        System.out.println(17<<1);
    }
}
